/* Correct BS */
.card>.list-group>.list-group-item {
	border-left: 0;
	border-right: 0;
}
.card>.list-group>.list-group-item:first-child {
	border-radius: 0;
}
.custom-control-label::after {
	top: .25rem;
	left: -2.1rem;
}

/* Addon BS */
[class^="bg-"] {
	padding: 1rem;
}

@for $i from 2 through 3 {
	.border-#{$i} { border-width: #{$i}px; }
}

/* Add BS Blockquote style */
@each $title, $color in $colors {
	blockquote.quote-#{$title} {
		border-left: .2rem solid #{$color};
		background-color: fade-out($brand-light, .05);
		padding: .5rem;

		& > h1,	> h2, > h3, > h4, > h5, > h6 {
			color: #{$color};
		}
	}
}

blockquote {@extend .ptsans;}

blockquote > p:last-child {
	margin-bottom: 0;
}

/* Toast */
@media (min-width: map-get($grid-breakpoints, md)) {
	.toast {
		width: 300px;
	}
}
@media (min-width: map-get($grid-breakpoints, lg)) {
	.toast {
		width: 350px;
	}
}

/* fix font-awesome */
a:hover [class="fa"],
a:hover [class^="fas-"],
a:hover [class^="far-"] {text-decoration: none !important;}

.fa, .fas, .far {
	font-family: 'Font Awesome 5 Free' !important;
}

/* Outline */
a:focus, a:active, .btn {outline: none !important;}

.btn:focus, .btn.focus {box-shadow: none !important;}

/* CKeditor styles */
.cked {overflow-x: hidden;}
[data-cke-saved-href] {font-weight: 600 !important;}

/* CodeMirror */
.CodeMirror {
	overflow: auto;
	font-family: $consolas;
	height: auto;
	margin: 5px 0;
	border: 1px solid $brand-gray;
	@include shadows(0 0 2px $middle-grey inset);
	border-radius: 4px;
}
span.CodeMirror-matchhighlight { background: $brand-gray; }
.CodeMirror-gutter { background: $brand-light !important; color: $middle-grey !important; }
.CodeMirror-focused span.CodeMirror-matchhighlight { background: $brand-gray !important; }

/**
 * Correct `block` display not defined in IE 8/9.
 */
article, aside, details, figcaption, figure, footer, header, hgroup, main, mark, menu, nav, time, section, summary {display: block;}

/**
 * Correct `inline-block` display not defined in IE 8/9.
 */
audio, canvas, video {display: inline-block;}

/**
 * Correct hidden elements
 */
[hidden] {display: none;}